﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 班级表
    /// </summary>
    [Table("B01")]
    public class EM_Class:EntityBase
    {
        /// <summary>
        /// 班级人数
        /// </summary>
        [Column("B001")]
        [Required]
        public int ClassNumber { get; set; }
        /// <summary>
        /// 年级
        /// </summary>
        [Column("B002")]
        [Required]
        public int ClassGrade { get; set; }
        /// <summary>
        /// 班级系部
        /// </summary>
        [Column("B003")]
        [Required]
        [StringLength(50)]
        public string ?ClassDepartment { get; set; }
        /// <summary>
        /// 班级地址
        /// </summary>

        [Column("B004")]
        [Required]
        [StringLength(50)]
        public string ?ClassAddress { get; set; }
        /// <summary>
        /// 班主任
        /// </summary>
        [Column("B005")]
        [Required]
        [StringLength(50)]
        public string ?Head_Teacher_Name { get; set; }

    }
}
